<% @page_title = 'メンバー ＞ 新規' %>
<h1>New member</h1>
<%= error_messages_for :member %>
<% form_for(@member) do |f| %>
<p>
    <b>Identifier</b>
    <br/>
    <%= f.text_field :identifier %>
</p>
<p>
    <b>Name</b>
    <br/>
    <%= f.text_field :name %>
</p>
<p>
    <b>Department</b>
    <br/>
    <%= select_tag ('member_department_id',
            options_from_collection_for_select(@departments, 'id', 'name'),
           :name => 'member[department_id]') %>
</p>
<p>
    <%= f.submit "Create" %>
</p>
<% end %>
<%= link_to 'Back', members_path %>
